import Vue from 'vue'
import App from './App'
import cuCustom from './colorui/components/cu-custom.vue'
import { myRequest } from './utils/request.js'
import store from './store'

Vue.prototype.$myRuquest = myRequest
Vue.filter('formatDate',(date)=>{
	const nDate = new Date(date)
	const year = nDate.getFullYear()
	const month = nDate.getMonth()+1
	const day = nDate.getDay()+2
	return year+'-'+month+'-'+day
})

Vue.config.productionTip = false

Vue.component('cu-custom',cuCustom)

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
